package com.allwees.bs.module.oms.req;

import com.allwees.bs.core.modelbase.constant.ErrorMessage;
import com.allwees.bs.core.modelbase.req.Req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Size;

@Data
@EqualsAndHashCode(callSuper = true)
public class PlatFormCancelShippedReq extends Req {

    private String orderItemUuid;

    //流转步骤的原因
    @Range(max = 32, message = ErrorMessage.PARAM_RANGE_ERROR)
    private Integer type;

    @Length(max = 2048, message = ErrorMessage.PARAM_LENGTH_ERROR)
    private String remarks;

    //流转步骤的图片
    @Size(max = 8, message = ErrorMessage.PARAM_LENGTH_ERROR)
    private String[] photos;

    //流转步骤的原因
    @Range(max = 32, message = ErrorMessage.PARAM_RANGE_ERROR)
    private Integer reason;

}
